package com.flection.summer.loadbalance;

import com.flection.summer.config.ConfigReader;
import com.flection.summer.entity.RouteEntity;

/**
 * 
 * @author thnl
 *
 */
public class RuleRandomLoadBalance extends AbstractRandomLoadBalance<RouteEntity> {

	private ConfigReader configReader;
	

	public RuleRandomLoadBalance(ConfigReader configReader) {
		this.configReader = configReader;
	}

	@Override
	public RouteEntity get() {
		return configReader.getBaseConfig().getRouteEntity();
	}

}